In mathematics, a set is a collection of different things Here: p.85; the things are called elements or members of the set and are typically mathematical objects: numbers, symbols, points in space, lines, other , variables, functions, or even other sets.
Mathematics typically does not define precisely what constitutes a "set" or "collection", because such a definition would have to be in terms of something else previously defined. Instead, sets serve as foundational objects whose behavior is described by axioms modeled on intuition about collections,This is analogous to the role of points and lines in Euclidean geometry: Euclid never gives a meaningful definition of "point". Instead, Euclid gives axioms modeled on our intuition on how points and lines behave. and then essentially all other mathematical objects are rigorously defined in terms of sets.For example, the ordered pair may be formally defined as the set , from which and can be recovered, in order.
Set theory studies possible axiom systems and their consequences. Since the first half of the 20th century, ZFC (Zermelo–Fraenkel set theory with the axiom of choice) has been the axiom system most commonly used.
The mathematical study of infinite sets began with Georg Cantor (1845–1918). This provided some counterintuitive statements and paradoxes. For example, the number line has an cardinal number of elements that is strictly larger than the infinite number of , and any line segment has the same number of elements as the whole line. Assuming the existence of a set of all sets led to a contradiction, Russell's paradox. This led to the foundational crisis of mathematics, and to proposed resolutions. One of these, Zermelo–Fraenkel set theory, has been generally adopted as a foundation of set theory and all mathematics, though much of mathematics does not require its full power.
Meanwhile, sets started to be widely used in all mathematics. In particular, algebraic structures and mathematical spaces are typically defined in terms of sets. Also, many older mathematical results are restated in terms of sets. For example, Euclid's theorem is often stated as "the set of the is infinite". This wide use of sets in mathematics was prophesied by David Hilbert when saying: "No one will drive us from the paradise that Cantor created for us."
The object of this article is to summarize the manipulation rules and properties of sets that are commonly used in mathematics, without reference to a specific logical framework. For the branch of mathematics that studies sets, see Set theory; for an informal presentation of the corresponding logical framework, see Naive set theory; for a more formal presentation, see Axiomatic set theory and Zermelo–Fraenkel set theory.
If is an element of a set , one says that belongs to or is in , and one writes . The statement " is not in " is written as . For example, if is the set of all , then and . The axiom of extensionality states that two sets are equal if and only if they have the same elements.
There exists a set with no elements, and extensionality implies that there is only one such set. It is called the empty set (or null set) and is denoted , , or .
A singleton is a set with exactly one element. If is this element, the singleton is denoted . The sets and are different, because the former has one element (namely, ) and the latter has no elements at all.
A set is finite set if there exists a natural number such that the first natural numbers can be put in bijection (one-to-one correspondence) with the elements of the set. In this case, one says that is the number of elements of the set. A set is infinite set if such an does not exist. The empty set is a finite set with elements.
The natural numbers form an infinite set, commonly denoted . Other examples of infinite sets include the integers (), the rational numbers (), the real numbers (), nonzero real vector spaces, curves, and most other mathematical spaces.
The notations for the empty set and for a singleton are examples of roster notation.
When specifying a set, all that matters is whether each potential element is in the set or not, so a set does not change if elements are repeated or arranged in a different order. For example,
When there is a clear pattern for generating all set elements, one can use an ellipsis to abbreviate the notation; for example, is a shorthand for . Ellipses in roster notation can also be used to describe some infinite sets; for example, the set of all integers can be denoted as or
Some logical formulas, such as or cannot be used in set-builder notation because there is no set for which the elements are characterized by the formula. There are several ways for avoiding the problem. One may prove that the formula defines a set; this is often almost immediate, but may be very difficult.
One may also introduce a larger set that must contain all elements of the specified set, and write the notation as or
One may also define once for all and take the convention that every variable that appears on the left of the vertical bar of the notation represents an element of . This amounts to saying that is implicit in set-builder notation. In this case, is often called the domain of discourse or a universe.
For example, with the convention that a lower case Latin letter may represent a real number and nothing else, the expression is an abbreviation of which defines the irrational numbers.
A set is a proper subset of a set if and ; to denote this, one writes , or . Likewise, one may write or .
The notation often means , but some authors use to mean . To avoid ambiguity, one can write or , depending on what is intended.
Intersection is associative and commutative; this means that for proceeding a sequence of intersections, one may proceed in any order, without the need of parentheses for specifying the order of operations.
If is a nonempty set of sets, its intersection, denoted is the set whose elements are those elements that belong to all sets in . That is, Example: If , then .
Union is associative and commutative.
If is a set of sets, its union, denoted is the set whose elements are those elements that belong to at least one set in . That is, Example: If , then .
When the difference is also called the set complement of in . When all sets that are considered are subsets of a fixed universal set , the complement is often called the absolute complement of .
The symmetric difference of two sets and , denoted , is the set of those elements that belong to or but not to both:
The powerset is a Boolean ring that has symmetric difference as addition, intersection as multiplication, the empty set as additive identity, as multiplicative identity, and the subset itself as the additive inverse.
The powerset is also a Boolean algebra for which the join is the union , the meet is the intersection , and the negation is the set complement.
As for every Boolean algebra, the powerset is also a partially ordered set for set inclusion. It is also a complete lattice.
The axioms of these structures induce many identities relating subsets, which are detailed in the linked articles.
The notation denotes a function from to . The result of applying to an element of is denoted ; it is called the value of at , or the image of under . The set is called the domain of , and is called the codomain of .
The graph of a function is the set of all ordered pairs as ranges over all elements of . It is a subset of the Cartesian product defined below. For example, the graph of the square function is a parabola in ; it contains points such as and .
Once the domain and codomain are specified, the graph of contains the same information as itself. This point of view allows one to formally define 'function' in terms of sets. Specifically, a function from to is a triple of sets with such that for every element in , there exists a unique element in such that . (For functions from to especially, the condition on is called the vertical line test.)
Formally, an indexed family is a function that has the index set as its domain. Generally, the usual functional notation is not used for indexed families. Instead, the element of the index set is written as a subscript of the name of the family, such as in .
When the index set is , an indexed family is called an ordered pair. When the index set is the set of the first natural numbers, an indexed family is called an -tuple. When the index set is the set of all natural numbers an indexed family is called a sequence.
In all these cases, the natural order of the natural numbers allows omitting indices for explicit indexed families. For example, denotes the 3-tuple such that .
The above notations and are commonly replaced with a notation involving indexed families, namely and
The formulas of the above sections are special cases of the formulas for indexed families, where and . The formulas remain correct, even in the case where for some , since .
One can likewise define as a set of ordered triples , and likewise for any finite number of sets.
In fact, the number of sets does not have to be finite. Given any indexed family of sets , the product is the set of all indexed families of elements such that for each . The axiom of choice implies that any product of nonempty sets is nonempty.
Equivalently, can be viewed as the Cartesian product of a family, indexed by , of sets that are all equal to . This explains the terminology and the notation, since exponentiation with integer exponents is a product where all factors are equal to the base.
There is a natural one-to-one correspondence (bijection) between the subsets of and the functions from to ; this correspondence associates to each subset the function that takes the value on the subset and elsewhere. Because of this correspondence, the power set of is commonly identified with set exponentiation: In this notation, is often abbreviated as , which gives In particular, if has elements, then has elements.
The disjoint union of two sets and is commonly denoted and is thus defined as
If is a set with elements, then has elements, while has elements.
The disjoint union of two sets is a particular case of the disjoint union of an indexed family of sets, which is defined as
The disjoint union is the coproduct in the category of sets. Therefore the notation is commonly used.
This map is always surjective; it is bijective if and only if the are pairwise disjoint, that is, all intersections of two sets of the family are empty. In this case, and are commonly identified, and one says that their union is the disjoint union of the members of the family.
If a set is the disjoint union of a family of subsets, one says also that the family is a partition of the set.
The fact that natural numbers measure the cardinality of finite sets is the basis of the concept of natural number, and predates for several thousands years the concept of sets. A large part of combinatorics is devoted to the computation or estimation of the cardinality of finite sets.
Two sets and have the same cardinality if there exists a one-to-one correspondence (bijection) between them. This is denoted , and would be an equivalence relation on sets, if a set of all sets would exist.
For example, the natural numbers and the even natural numbers have the same cardinality, since multiplication by two provides such a bijection. Similarly, the interval and the set of all real numbers have the same cardinality, a bijection being provided by the function .
Having the same cardinality of a proper subset is a characteristic property of infinite sets: a set is infinite if and only if it has the same cardinality as one of its proper subsets. So, by the above example, the natural numbers form an infinite set.
Besides equality, there is a natural inequality between cardinalities: a set has a cardinality smaller than or equal to the cardinality of another set if there is an injection from to . This is denoted .
Schröder–Bernstein theorem implies that and imply . Also, one has , if and only if there is a surjection from to . For every two sets and , one has either or . So, inequality of cardinalities is a total order.
The cardinality of the set of the natural numbers, denoted , is the smallest infinite cardinality. This means that if is a set of natural numbers, then either is finite or .
Sets with cardinality less than or equal to are called ; these are either finite sets or countably infinite sets (sets of cardinality ); some authors use "countable" to mean "countably infinite". Sets with cardinality strictly greater than are called .
Cantor's diagonal argument shows that, for every set , its power set (the set of its subsets) has a greater cardinality: This implies that there is no greatest cardinality.
Since, as seen above, the real line has the same cardinality of an open interval, every subset of that contains a nonempty open interval also has the cardinality .
One has meaning that the cardinality of the real numbers equals the cardinality of the power set of the natural numbers. In particular,
When published in 1878 by Georg Cantor, this result was so astonishing that it was rejected by mathematicians, and several decades were needed before its common acceptance.
It can be shown that is also the cardinality of the entire plane, and of any finite-dimensional Euclidean space.
The continuum hypothesis, a conjecture formulated by Georg Cantor in 1878, states that there is no set with cardinality strictly between and .
In 1963, Paul Cohen proved that the continuum hypothesis is independent of the of Zermelo–Fraenkel set theory with the axiom of choice.
A more formal statement of the axiom of choice is: the Cartesian product of every indexed family of nonempty sets is non empty.
Other equivalent forms are described in the following subsections.
Let be a partial ordered set. A chain in is a subset that is total order under the induced order. Zorn's lemma states that, if every chain in has an upper bound in , then has (at least) a maximal element, that is, an element that is not smaller than another element of .
In most uses of Zorn's lemma, is a set of sets, the order is set inclusion, and the upperbound of a chain is taken as the union of its members.
An example of use of Zorn's lemma, is the proof that every vector space has a Hamel basis. Here the elements of are linearly independent subsets of the vector space. The union of a chain of elements of is linearly independent, since an infinite set is linearly independent if and only if each finite subset is, and every finite subset of the union of a chain must be included in a member of the chain. So, there exist a maximal linearly independent set. This linearly independent set must span the vector space because of maximality, and is therefore a basis.
Another classical use of Zorn's lemma is the proof that every proper idealthat is, an ideal that is not the whole ringof a ring is contained in a maximal ideal. Here, is the set of the proper ideals containing the given ideal. The union of chain of ideals is an ideal, since the axioms of an ideal involve a finite number of elements. The union of a chain of proper ideals is a proper ideal, since otherwise would belong to the union, and this implies that it would belong to a member of the chain.
Simple examples of well-ordered sets are the natural numbers (with the natural order), and, for every , the set of the -tuples of natural numbers, with the lexicographic order.
Well-orders allow a generalization of mathematical induction, which is called transfinite induction. Given a property (predicate) depending on a natural number, mathematical induction is the fact that for proving that is always true, it suffices to prove that for every ,
|
|